package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 归档任务执行日志业务对象
 *
 * @author ruoyi
 * @date 2024-12-06
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ArchiveResultBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 任务id
     */
    @NotNull(message = "任务id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long taskId;

    /**
     * 任务名称
     */
    @NotBlank(message = "任务名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String taskName;

    /**
     * 执行开始时间
     */
    @NotNull(message = "执行开始时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date startTime;

    /**
     * 执行结束时间
     */
    private Date endTime;

    /**
     * 执行状态：0：执行中、1：成功、2：失败
     */
    @NotNull(message = "执行状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer executeStatus;

    /**
     * 执行日志
     */
    private String message;


}
